<%--
  Created by IntelliJ IDEA.
  User: HX
  Date: 2021/1/26
  Time: 12:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%--if标签--%>
    <%--
        <c:if test="${表达式}">
            html标签内容
        </c:if>
    --%>
    <c:if test="${5>6}">
        <h1>错误</h1>
    </c:if>
    <c:if test="${5<=6}">
        <h2>正确</h2>
    </c:if>
    <%--forEach标签--%>
        <%--普通for标签--%>
    <%--<c:forEach var="i" begin="1" end="10" step="1">
                ${i}
            </c:forEach>
         --%>
    <c:forEach var="i" begin="1" end="10" step="1">
        ${i}
    </c:forEach>

        <%--增强for循环--%>
    <c:forEach var="s" items="${arr}">
        ${s}
    </c:forEach>
</body>
</html>
